<?php
/* @var $this UserController */
/* @var $model User */

$this->breadcrumbs=array(
	'Operators'=>array('index'),
	'Writing on the bulletin board',
);
?>

<div class="page-header">
	<div class="page-title"><h3><?php echo Yii::t('app', 'Writing on the bulletin board')?></h3></div>
	<div class="buttons">
		<button class="btn btn-primary" id="btn_save"><?php echo Yii::t('app', 'Save')?></button>
	</div>
</div>

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'edit-form',
	'htmlOptions'=> array('class'=>'form-horizontal')
)); ?>

	<?php echo $form->errorSummary($model); ?>

	<div class="control-group">
		<?php echo $form->labelEx($model,'operator', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->textField($model, 'operator'); ?>
			<?php echo $form->error($model,'operator'); ?>
		</div>
	</div>
	
	<div class="control-group">
		<?php echo $form->labelEx($model,'topic_id', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->dropdownList($model, 'topic_id', Topic::model()->getListData()); ?>
			<?php echo $form->error($model,'topic_id'); ?>
		</div>
	</div>
	
	<div class="control-group">
		<?php echo $form->labelEx($model,'title', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->textField($model, 'title'); ?>
			<?php echo $form->error($model,'title'); ?>
		</div>
	</div>
	
	<div class="control-group">
		<?php echo $form->labelEx($model,'content', array('class'=>'control-label')); ?>
		<div class="controls">
			<?php echo $form->textArea($model, 'content', array()); ?>
			<?php echo $form->error($model,'content'); ?>
		</div>
	</div>
	
<?php $this->endWidget(); ?>